package com.example.userserver.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class LoginVO {
    @ApiModelProperty(value = "userId", example = "124151")
    private String userId;

    @ApiModelProperty(value = "token", example = "1545643123adsaf243234")
    private String token;

    @ApiModelProperty(value = "userName", example = "刘宇豪")
    private String userName;

    @ApiModelProperty(value = "photo", example = "url")
    private String photo;

    @ApiModelProperty(value = "role", example = "1")
    private int role;

    public LoginVO(String userId, String userName, String token, String photo, int role) {
        this.userId = userId;
        this.token = token;
        this.userName = userName;
        this.photo = photo;
        this.role = role;
    }
}
